home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / apps / circuits / spice2g6.z / spice2g6 / spice / Fortran / ptrmem.f < prev    next >
Encoding:
Text File  |  1989-02-03  |  650 b   |  22 lines

  1.       subroutine ptrmem(ipntr,ipntr2)
  2.       implicit double precision (a-h,o-z)
  3.       dimension ipntr(1),ipntr2(1)
  4. c spice version 2g.6  sccsid=memmgr 3/15/83
  5.       common /memmgr/ cpyknt,istack(1),lorg,icore,maxcor,maxuse,memavl,
  6.      1   ldval,numblk,loctab,ltab,ifwa,nwoff,ntab,maxmem,memerr,nwd4,
  7.      2   nwd8,nwd16
  8.       logical memptr
  9. c
  10. c***  ptrmem - reset memory pointer
  11. c
  12. c...  verify that pointer is valid
  13.       if (memptr(ipntr(1))) go to 10
  14.       memerr=5
  15.       call errmem(4,memerr,ipntr(1))
  16. c...  reset block pointer to be *ipntr2*
  17.    10 ipntr2(1)=ipntr(1)
  18.       istack(ltab+4)=locf(ipntr2(1))
  19.       call memadj
  20.       return
  21.       end
  22.